<?php
/**
 * Description of index.php.
 *
 * @package fruits
 * @author zhenhao<hit_zhenhao@163.com>
 */
define('BASE_DIR', dirname(__DIR__));

$loader = include BASE_DIR . '/vendor/autoload.php';

$loader->addPsr4('Real\\', [
    BASE_DIR,
]);

$app = new Silex\Application();

$app['debug'] = true;

$app->get('/', '\Real\App\Root::index');
$app->get('/hello/{name}', '\Real\App\Root::hello');

$app->run();
